var www = 'mrmotors';

function deleteObject(id, name) {
	if (confirm("Are you sure to delete ["+ name +"] the row ["+ id +"] ?")) {
		window.location = "../"+www+"/index_"+name+".php?action=delete&id=" + id;
	}
}

function deleteObjectByAdmin(id, name) {
	if (confirm("Are you sure for delete ["+ name +"] with id ["+ id +"] ?")) {
		window.location = "../"+www+"/index_admin.php?entity="+name+"&action=delete&id=" + id;
	}
}

function deleteFromCart(id) {
	if (confirm("Are you sure to remove the product from cart?")) {
		window.location = "../"+www+"/index_cart.php?action=delete&id=" + id;
	}

function ChangeClassName(strMenuId, strClassName){
	var e;
	e = document.getElementById(strMenuId);
	e.className = strClassName;
	}
	
}
